var mongoose = require("./db");

//课程数据表
var Course = mongoose.model('courses', {
    name: String, //名称
    desc: String, //描述
    create: String, //发布时间
    photo: String, //封面
    classHour: Number, //课时    
    ageStart: Number,  //适应年龄段,开始年龄
    ageEnd: Number,  //适应年龄段,结束年龄
    chapter: [{
        name: String, //章节名
        desc: String, //章节描述
        video: String //视频
    }]
});

module.exports = Course;